<template>
<div>
  <div>Home组件</div>
  <router-link to="/home/movie">电影</router-link>
  <router-link to="/home/music">音乐</router-link>
  <keep-alive>
    <router-view/>
  </keep-alive>
</div>
</template>

<script>
export default {
  name: "index",
  mounted() {
    console.log('home mounted')
  },
  beforeDestroy() {
    console.log('home beforeDestroy')
  }
}
</script>

<style scoped>

</style>